package com.uzhie.jt808.msg.entity.JT_200;

import com.uzhie.jt808.msg.entity.IPositionAdditionalItem;
import com.uzhie.jt808.msg.entity.JT_0200;

/**
 * Created by TangFei on 2018/10/7.
 * 苏标 报警信息
 */
public class JS_0200 extends JT_0200 {

    // 驾驶辅助报警
    private JS_DrivingAssistanceSystemWarn drivingAssistanceSystemWarn;
    // 驾驶员状态检测报警
    private JS_DriverStatusMonitorSystemWarn driverStatusMonitorSystemWarn;
    // 胎压检测报警
    private JS_TirePressureMonitorSystemWarn tirePressureMonitorSystemWarn;
    // 盲区检测报警
    private JS_BlindAreaMonitorSystemWarn blindAreaMonitorSystemWarn;

    public JS_DrivingAssistanceSystemWarn getDrivingAssistanceSystemWarn() {
        for (IPositionAdditionalItem item : super.getAdditionals()) {
            if (item instanceof JS_DrivingAssistanceSystemWarn){
                drivingAssistanceSystemWarn = (JS_DrivingAssistanceSystemWarn) item;
                break;
            }
        }
        return drivingAssistanceSystemWarn;
    }

    public JS_DriverStatusMonitorSystemWarn getDriverStatusMonitorSystemWarn() {
        for (IPositionAdditionalItem item : super.getAdditionals()) {
            if (item instanceof JS_DriverStatusMonitorSystemWarn){
                driverStatusMonitorSystemWarn = (JS_DriverStatusMonitorSystemWarn) item;
                break;
            }
        }
        return driverStatusMonitorSystemWarn;
    }

    public JS_TirePressureMonitorSystemWarn getTirePressureMonitorSystemWarn() {
        for (IPositionAdditionalItem item : super.getAdditionals()) {
            if (item instanceof JS_TirePressureMonitorSystemWarn){
                tirePressureMonitorSystemWarn = (JS_TirePressureMonitorSystemWarn) item;
                break;
            }
        }
        return tirePressureMonitorSystemWarn;
    }

    public JS_BlindAreaMonitorSystemWarn getBlindAreaMonitorSystemWarn() {
        for (IPositionAdditionalItem item : super.getAdditionals()) {
            if (item instanceof JS_BlindAreaMonitorSystemWarn){
                blindAreaMonitorSystemWarn = (JS_BlindAreaMonitorSystemWarn) item;
                break;
            }
        }
        return blindAreaMonitorSystemWarn;
    }
}
